//
//  AppDelegate.m
//  TintExample
//
//  Created by Kevin Wu on 8/31/12.
//  Copyright (c) 2012 Telligenty. All rights reserved.
//

#import "AppDelegate.h"
#import "TEMainViewController.h"

@implementation AppDelegate

- (UIViewController *)newViewController {
    TEMainViewController *vc = [[TEMainViewController alloc] init];
    UINavigationController *nv = [[UINavigationController alloc] initWithRootViewController:vc];
    TTRelease(vc);
    return nv;
}

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [super application:application didFinishLaunchingWithOptions:launchOptions];
    
    
    [self willCreateWindow];
    
    self.window = [self newWindow];
    self.window.rootViewController = [self newViewController];
    [self.window makeKeyAndVisible];
    
    [self didCreateWindow];
    
    [self performSelector:@selector(doit:) withObject:nil afterDelay:2.0];
    
    return YES;
}

- (void)doit:(id)object
{
    NSLog(@"%@", [NSString newUUIDString]);
    [self performSelector:@selector(doit:) withObject:nil afterDelay:2.0];
}

@end
